/**
 *Project: jh-framework
 *File: cn.xkshow.override.ObjectHelper.java 
 *Author: admin@xkshow.cn with the copyrite
 ****************************************************************
 *   VERSION       DATE            BY       CHANGE/COMMENT
 * --------------------------------------------------------------
 *    1.0        2013-3-27        xkshow.cn         create
 ****************************************************************
 *note: 重写equals
 ***************************************************************/ 
package cn.xkshow.lang;

public class ObjectHelper {
	public int headX, headY;

	ObjectHelper(int headX, int headY) {
		  this.headX = headX;
		  this.headY = headY;
	 }
	  
	 public boolean equals(Object o) {
		 if(!(o instanceof ObjectHelper)) 
			 return false; 
		 
		 ObjectHelper obj = (ObjectHelper)o;
		 return this.headX==obj.headX && this.headY==obj.headY;
	 }
}
